package com.recommended.constants;

/**
 * @author xwj
 * @date 2019/4/9
 */
public class WeChatConstant {
    /**
     * 域名映射
     */
    public static final String NET_APP_URL = "http://9iqana.natappfree.cc";
    public static final String APP_ID = "appid";
    public static final String APP_SECRET = "appsecret";
    public static final String TOKEN = "icsystem";
    public static final String RESP_MESSAGE_TYPE_TEXT = "text";
    public static final Object REQ_MESSAGE_TYPE_TEXT = "text";
    public static final Object REQ_MESSAGE_TYPE_IMAGE = "image";
    public static final Object REQ_MESSAGE_TYPE_VOICE = "voice";
    public static final Object REQ_MESSAGE_TYPE_VIDEO = "video";
    public static final Object REQ_MESSAGE_TYPE_LOCATION = "location";
    public static final Object REQ_MESSAGE_TYPE_LINK = "link";
    public static final Object REQ_MESSAGE_TYPE_EVENT = "event";
    public static final Object EVENT_TYPE_SUBSCRIBE = "subscribe";
    public static final Object EVENT_TYPE_UNSUBSCRIBE = "unsubscribe";
    public static final Object EVENT_TYPE_SCAN = "SCAN";
    public static final Object EVENT_TYPE_LOCATION = "LOCATION";
    public static final Object EVENT_TYPE_CLICK = "CLICK";

    public static final String FromUserName = "FromUserName";
    public static final String ToUserName = "ToUserName";
    public static final String MsgType = "MsgType";
    public static final String Content = "Content";
    public static final String Event = "Event";

    public static final String SEARCH_FLAG = "资料搜索";

    public final static String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
    /**
     * 菜单创建
     */
    public static final String MENU_CREATE_URL  = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";
    /**
     * 菜单查询
     */
    public static final String MENU_GET_URL = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token=ACCESS_TOKEN";
    /**
     * 菜单删除
     */
    public static String MENU_DELETE_URL = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=ACCESS_TOKEN";
    /**
     * 资料搜索
     */
    public static final String DATA_SEARCH_URL = "http://127.0.0.1:9999/data/search";
    /**
     * 专业搜索
     */
    public static final String PROFESSIONAL_SEARCH_URL = "http://127.0.0.1:9999/data/searchProfessional";
    /**
     * 学校搜索
     */
    public static final String UNIVERSITY_SEARCH_URL = "http://127.0.0.1:9999/data/searchUniversity";
}
